package asteroids.model.programs.unaryexpression;

import asteroids.model.programs.Expression;
import asteroids.model.programs.Program;
import exception.IllegalOperandException;

public class Sinus extends UnaryExpression<java.lang.Double> {

	public Sinus(Expression<?> operand) throws IllegalOperandException {
		super(operand);
	}

	@Override
	public java.lang.Double getValue(Program program) {
		return Math.sin((Double)(getOperand().getValue(program)));
	}



}
